<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">订单清单</li>
  </ol>
  <form class="form-inline search-box" role="form" ng-submit="search()" novalidate>
    <table>
      <tr>
        <td><label style="margin:0px 0px 0px 10px">注册日期</label></td>
        <td><label style="margin:0px 0px 0px 10px">通过认证日期</label></td>
        <td></td>
      </tr>
      <tr>
        <td>
          <div class="form-group">
            <input type="date" class="form-control" placeholder="起始日期,如2015-01-01" ng-model="searchMap.createDateStart" maxlength="10">
          </div>
          <div class="form-group">
            <input type="date" class="form-control" placeholder="结束日期,如2015-01-01" ng-model="searchMap.createDateEnd" maxlength="10">
          </div>
        </td>
        <td>
          <div class="form-group">
            <input type="date" class="form-control" placeholder="起始日期,如2015-01-01" ng-model="searchMap.authDateStart" maxlength="10">
          </div>
          <div class="form-group">
            <input type="date" class="form-control" placeholder="结束日期,如2015-01-01" ng-model="searchMap.authDateEnd" maxlength="10">
          </div>
        </td>
        <td>
          <button type="submit" class="btn btn-default">查询</button>
          <button type="button" class="btn btn-default" ng-click="userListCsv()">导出CSV</button>
        </td>
      </tr>
    </table>

  </form>
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th>编号</th>
        <th>用户ID</th>
        <th>注册时间</th>
        <th>姓名</th>
        <th>通过认证时间</th>
        <th>邀请人</th>
        <th>公司地址</th>
        <th>公司职位</th>
        <th>来源</th>
        <th>登录次数</th>
        <th>最近登录时间</th>
      </tr>
    </thead>
    <tbody><!---->
      <tr ng-repeat="u in list">
        <td>{{u.id}}</td>
        <td>{{u.userId}}</td>
        <td>{{u.createDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>{{u.uName}}</td>
        <td>{{u.authDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>{{u.sourceCode || ""}}</td>
        <td>{{u.uCompanyAdd}}</td>
        <td>{{u.uJob}}</td>
        <td>
        <div>{{u.mediaSource | mediaSourceRender}}</div>
        <div>{{u.activitiesSource | actSourceRender}}</div>
        </td>
        <td>{{u.loginCount}}</td>
        <td>{{u.lastLoginTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
      </tr>
    </tbody>
  </table>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="list.length > 0"></div>
</div>